require 'redmine'

Redmine::Plugin.register :redmine_how_busy do
  name 'Redmine How Busy plugin'
  author 'Tsubo'
  description 'This plugin provide some pages that show how busy.'
  url 'http://code.google.com/p/tsubo-redmine-plugins/'
  author_url 'http://code.google.com/p/tsubo-redmine-plugins/'

  permission :how_busy, {:how_busy => [:index]}, :public => true
  menu :project_menu, :how_busy, { :controller => 'how_busy', :action => 'index' }, :caption => :how_busy, :last => true, :param => :project_id

  settings :default => {
    'regular_work_hours' => '7.75',
    'mypage_num_past_days' => '3',
    'mypage_num_future_days' => '5'
  }, :partial => 'settings/how_busy_settings'

  version '0.0.1'
  requires_redmine :version_or_higher => '0.9.0'
end
